<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .container {
            overflow: hidden;
            width: 500px;
            height: 500px;
            background-color: #0c9641;
            margin: 0 auto;
        }

        .container .box1 {
            /*float: left;*/
            margin-top: 50px;
            width: 100px;
            height: 100px;
            background-color: red;
            margin-bottom: 30px;
        }

        .container .box2 {
            /*float: left;*/
            margin-top: 20px;
            width: 100px;
            height: 100px;
            background-color: rgba(99, 207, 228, 0.65);
        }
    </style>
</head>
<body>
<div class="container">
    <div class="box1">盒子1</div>
    <div class="box2">盒子2</div>
</div>
</body>
</html>
